<%--
  Created by IntelliJ IDEA.
  User: 17400
  Date: 2022/10/28
  Time: 9:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<html>
<head>
    <title>第三阶段--动态页面--Model2模式 mvc</title>
</head>
<body>
    <c:if test="${names == null}">
        <script>
            const flag = confirm('没有数据，重新加载')
            if(flag) {
                location.href = "stu";
            }
        </script>
    </c:if>
    <ul>
        <c:forEach items="${names}" var="name">
            <li>${name}</li>
        </c:forEach>
    </ul>
</body>
</html>
